package com.zhangfb95.crosschain.server.infra.data.converter;

import com.zhangfb95.crosschain.server.infra.model.controller.request.rpcchainaccount.RpcChainAccountAddReq;
import com.zhangfb95.crosschain.server.infra.model.controller.response.rpcchainaccount.RpcChainAccountListRes;
import com.zhangfb95.crosschain.server.infra.model.mapper.entity.ChainAccount;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author zhangfubing
 * @since 2023/12/22
 */
@Mapper
public interface ChainAccountConverter {

    ChainAccountConverter INSTANCE = Mappers.getMapper(ChainAccountConverter.class);

    ChainAccount convert(RpcChainAccountAddReq req);

    RpcChainAccountListRes.Item convert(ChainAccount req);
}
